function printInfo (name, gender='man', ...args) {
    console.log(name)
    console.log(gender)
    console.log(args)
  }
  
  printInfo('小红', 'woman', 1, 2, 3)  // 小红 woman [1, 2, 3]
  printInfo('小红', 1, 2, 3)  // 小红 1 [2, 3]